﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Warehouse.Mode;

namespace Warehouse.DB
{
     class SqlHelp<TEntity> where TEntity : class
    {
       static SqlSugarClient Db = new SqlSugarDbContext().Db;
        public static void Qery()
        {

        }
        public static void Insert()
        {
      
            User user = new User
            {
                Name = "小米",
                Password = "!23",
                Role = 0,
                InsertDate = DateTime.Now.ToString("yy-MM-dd hh:mm:ss")
            };
            // 插入数据
            Db.Insertable(user).ExecuteCommand();
        }
    }
}
